GM.Name = "MinishCap"
GM.Author = "Copperbotte"
GM.Email = "copperbotte@yahoo.com"
GM.Website = "http://www.facepunch.com/"

DeriveGamemode("fretta")

IncludePlayerClasses()					// Automatically includes files in "gamemode/player_class"
 
GM.TeamBased = true					// Team based game or a Free For All game?
GM.AllowAutoTeam = true
GM.AllowSpectating = true
GM.SecondsBetweenTeamSwitches = 10
GM.GameLength = 1500
GM.RoundLimit = 10					// Maximum amount of rounds to be played in round based games
GM.VotingDelay = 5					// Delay between end of game, and vote. if you want to display any extra screens before the vote pops up
 
GM.NoPlayerSuicide = false
GM.NoPlayerDamage = false
GM.NoPlayerSelfDamage = false		// Allow players to hurt themselves?
GM.NoPlayerTeamDamage = true		// Allow team-members to hurt each other?
GM.NoPlayerPlayerDamage = false 	// Allow players to hurt each other?
GM.NoNonPlayerPlayerDamage = false 	// Allow damage from non players (physics, fire etc)
GM.NoPlayerFootsteps = true		// When true, all players have silent footsteps
GM.PlayerCanNoClip = false			// When true, players can use noclip without sv_cheats
GM.TakeFragOnSuicide = false			// -1 frag on suicide
 
GM.MaximumDeathLength = 10			// Player will respawn if death length > this (can be 0 to disable)
GM.MinimumDeathLength = 5			// Player has to be dead for at least this long
GM.AutomaticTeamBalance = false     // Teams will be periodically balanced 
GM.ForceJoinBalancedTeams = false	// Players won't be allowed to join a team if it has more players than another team
GM.RealisticFallDamage = false
GM.AddFragsToTeamScore = false		// Adds player's individual kills to team score (must be team based)
 
GM.NoAutomaticSpawning = false		// Players don't spawn automatically when they die, some other system spawns them
GM.RoundBased = false				// Round based, like CS
GM.RoundLength = 60 * 2					// Round length, in seconds
GM.RoundPreStartTime = 5			// Preperation time before a round starts
GM.RoundPostLength = 5				// Seconds to show the 'x team won!' screen at the end of a round
GM.RoundEndsWhenOneTeamAlive = false	// CS Style rules
 
GM.EnableFreezeCam = false			// TF2 Style Freezecam
GM.DeathLingerTime = 3				// The time between you dying and it going into spectator mode, 0 disables
 
GM.SelectModel = false               // Can players use the playermodel picker in the F1 menu?
GM.SelectColor = true				// Can players modify the colour of their name? (ie.. no teams)
 
GM.PlayerRingSize = 48              // How big are the colored rings under the player's feet (if they are enabled) ?
GM.HudSkin = "SimpleSkin"
 
GM.ValidSpectatorModes = { OBS_MODE_CHASE, OBS_MODE_IN_EYE, OBS_MODE_ROAMING }
GM.ValidSpectatorEntities = { "player" }	// Entities we can spectate
GM.CanOnlySpectateOwnTeam = false // you can only spectate players on your own team

GM.MapVoteMode = false

GM.TEAM_LINK = 1

//add particle precaches here
PrecacheParticleSystem("GustJar1")
PrecacheParticleSystem("GustJar2")
PrecacheParticleSystem("GustJar3")
PrecacheParticleSystem("GustJar_suck")



//Add the teams needed here
function GM:CreateTeams()
	team.SetUp(self.TEAM_LINK,"Players",Color(64,255,64,255))	
	team.SetSpawnPoint(self.TEAM_LINK, {"info_player_start", "info_player_terrorist", "info_player_counterterrorist", "info_player_teamspawn"})
	team.SetClass( self.TEAM_LINK, { "Link" } )
end
/*
function hurtsound()
	local ow = "vo/npc/male01/ow0"..tostring(math.random(1,2))..".wav"
	local pain = "vo/npc/male01/pain0"..tostring(math.random(1,9))..".wav"
	
	local hurt = ""
	local rand = math.random(1,11)
	if rand<=2 then
		hurt = ow
	else
		hurt = pain
	end
	return hurt
end

local ouch = 0
function ouchstep()
	if ouch == 0 then
		ouch = 1
	else
		ouch = 0
	end	
end
concommand.Add("kirby_ouchstep",ouchetep)
function GM:PlayerFootstep(ply,pos,foot,sound,volume,rf)
	if ouch==1 then
		ply:EmitSound(hurtsound())
	end
	return true
end
*/
